<template>
  <div class="no-data">
    <img
      :src="noDataPic"
      class="no-data-img"
    >
    <div class="no-data-text">
      <slot />
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  props: {
    noDataPic: {
      type: String,
      default: require('assets/class/no_data.png'),
    },
  },
})
</script>

<style lang="scss" scoped>
.no-data {
  font-size: 32px;
  padding: 20px 0;
  text-align: center;
}
.no-data-img {
  width: 200px;
  margin-bottom: 20px;
}
</style>
